const http = require('../utils/http.js');

// 所属会员列表
const getChilds = (params) => {
    return http.request('GET', `/User/GetChildPager`,params)
}

// 获取当前用户销售额度，当月团队销售额和累计团队销售额
const getSales = ()=>{
    return http.request('GET', `/User/GetCurrentSalesVolume`)
}

// 获取我的团队-我的返利
const getRebate = (params)=>{
    return http.request('GET', `/User/my_rebate`, params)
}

// 获取我的团队-我的下级
const getSubordinate = (params)=>{
    return http.request('GET', `/User/my_subordinate`, params)
}

// 获取我的团队-营销推广
const getMarket = ()=>{
    return http.request('GET', `/User/my_market`)
}

// 获取我的团队-提现记录
const getWithdrawal = ()=>{
    return http.request('GET', `/User/my_withdrawal`)
}

// 获取我的团队-返利详情
const getRebateDetail = (params)=>{
    return http.request('GET', `/User/rebate_detail`,params)
}

// 获取我的团队-我的提现
const getMyWithdrawal = (params)=>{
    return http.request('GET', `/User/my_withdrawal`,params)
}

module.exports = {
    getChilds,
    getSales,
    getRebate,
    getSubordinate,
    getMarket,
    getWithdrawal,
    getRebateDetail,
    getMyWithdrawal
}